home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10075 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  705 b 

  1. Path: news1.cris.com!Crawford
  2. From: Crawford@cris.com (CRAWFORD)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Help with writing floating points numbers to strings
  5. Date: 15 Mar 1996 13:40:04 GMT
  6. Organization: Concentric Internet Services
  7. Message-ID: <4ibrvk$308@spectator.cris.com>
  8. References: <4ia9g9$d1f@yama.mcc.ac.uk>
  9. Reply-To: crawford@iac.net
  10. NNTP-Posting-Host: viking.cris.com
  11.  
  12. Simon Letherman <simon@ma.man.ac.uk> writes:
  13. >    sprintf(string, "%lf", &double);
  14.                                ^^^^^^^
  15. >I get the core dumped on me.
  16.  
  17.     Could the problem be you're passing the _address_ of double,
  18. not the _value_?
  19.  
  20. --
  21. The Lurker On the Threshold...
  22. Robert Crawford                crawford@iac.net
  23. http://www.iac.net/~crawford
  24.